home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / Replacements / cpdist_0_17.lha / cpdist-0.17 / source / MAKEFILE.DJ < prev    next >
Text File  |  1994-06-03  |  2KB  |  78 lines

  1. # CPDIST Makefile for the MS-DOS 386/G++ GNU C/C++ Compiler (DJGPP)
  2. # We expect DJGPP version 1.02 (is there any other ?!)
  3. #
  4. # (c)Copyright 1992-93 by Tobias Ferber.
  5. #
  6. # This file is part of CPDIST.
  7. #
  8. # CPDIST is free software; you can redistribute it and/or modify
  9. # it under the terms of the GNU General Public License as published
  10. # by the Free Software Foundation; either version 1 of the License, or
  11. # (at your option) any later version.
  12. #
  13. # CPDIST is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with CPDIST; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21.  
  22. CC=gcc
  23.  
  24. # -DNO_GETKEY   use gets() instead of getkey()
  25. # -DNO_PERROR   don't use perror()
  26.  
  27. # Why the hell don't they define __MSDOS__ but unix ?
  28. CFLAGS= -O -D__MSDOS__ -Uunix
  29.  
  30. # The ´a.out' files from DJGPP are not executable on MS-DOS machines.
  31. # They need an extender (e.g. GO32.EXE) which either must be prepended
  32. # or run as a command with the a.out filename in it's arguments.
  33. # Alternatively you may prepend the STUB.EXE which executes GO32 from
  34. # your PATH.  Stub is much smaller than go32, so less disk space is used.
  35. # Also, if you change go32, you don't have to change stub, and all the
  36. # stub-ized programs will use the new go32 automatically.
  37.  
  38. EXTENDER=c:\devel\djgpp\bin\stub.exe
  39.  
  40. .PHONY: all
  41.  
  42. all: cpdist
  43.  
  44. cpdist: cpdist.exe
  45.  
  46. cpdist.exe: cpdist.out
  47.     copy /b $(EXTENDER) + $< $@ > nul:
  48.     del $<
  49.  
  50. cpdist.out: main.o args.o msg.o cpdist.o keys.o getkey.o filecopy.o
  51.     $(CC) $(CFLAGS) -o $@ $?
  52.  
  53. main.o: main.c cpdist.h
  54.     $(CC) $(CFLAGS) -c -o $@ $<
  55.  
  56. args.o: args.c
  57.     $(CC) $(CFLAGS) -c -o $@ $<
  58.  
  59. msg.o: msg.c cpdist.h
  60.     $(CC) $(CFLAGS) -c -o $@ $<
  61.  
  62. cpdist.o: cpdist.c cpdist.h
  63.     $(CC) $(CFLAGS) -c -o $@ $<
  64.  
  65. keys.o: keys.c cpdist.h
  66.     $(CC) $(CFLAGS) -c -o $@ $<
  67.  
  68. getkey.o: getkey.c getkey.h
  69.     $(CC) $(CFLAGS) -c -o $@ $<
  70.  
  71. filecopy.o: filecopy.c filecopy.h
  72.     $(CC) $(CFLAGS) -c -o $@ $<
  73.  
  74. # *** / TAGS / ***
  75.  
  76. tags:
  77.     etags -t *.c *.h
  78.